package com.asyf.consumer.feignservice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "alibaba-provider")
public interface FeignDemoService {

    //provider配置了路径server.servlet.context-path=/provider，所以要添加 provider
    @RequestMapping("/provider/demo")
    public String test();

}
